package com.qyhl.school.school.column.course.detail.introducation;

import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.qyhl.school.R;
import com.qyhl.school.R2;
import com.qyhl.webtv.basiclib.base.BaseFragment;

import butterknife.BindView;

public class SchoolColumnCourseIntroductionFragment extends BaseFragment {
    @BindView(R2.id.content)
    TextView content;

    private String summary;

    public void setContent(String summary) {
        this.summary = summary;
    }

    public static SchoolColumnCourseIntroductionFragment newInstance(String str) {
        SchoolColumnCourseIntroductionFragment fragment = new SchoolColumnCourseIntroductionFragment();
        fragment.setContent(str);
        return fragment;
    }

    @Override
    protected View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_school_column_course_introduction, null);
    }

    @Override
    protected void create() {
        content.setMovementMethod(ScrollingMovementMethod.getInstance());
        content.setText(summary);
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected void onFirstVisible() {

    }

    @Override
    protected void onVisible() {

    }

    @Override
    protected void onHide() {

    }


}
